export default [
    {
        name: 'app',
        path: '/',
        component: () => import('../pages/main.vue'),
        meta: { title: '首页' },
        children: [
            {
                name: 'appDefault',
                path: '/',
                redirect: { name: 'page1' }
            },
            {
                name: 'page1',
                path: '/page1',
                component: () => import('../pages/page1.vue'),
                meta: { title: 'Page 1' }
            },
            {
                name: 'page2',
                path: '/page2',
                component: () => import('../pages/page2.vue'),
                meta: { title: 'Page 2' }
            },
            {
                name: 'page3',
                path: '/page3',
                component: () => import('../pages/page3.vue'),
                meta: { title: 'Page 3' }
            },
            {
                name: 'charge',
                path: '/charge',
                component: () => import('../pages/charge.vue'),
                meta: { title: 'Charge Page' }
            },
        ]
    },
    {
        name: 'NotFound',
        path: '/:pathMatch(.*)*',
        redirect: { name: 'app' }
    }
]
